<?php

require_once("../script/application.php");

if($_REQUEST['_file'] && $_REQUEST['_permission'] && $_REQUEST['_user'] )
{
	$user_name = $_REQUEST['_user'];
	$file = $_REQUEST['_file'];
	$permission = $_REQUEST['_permission'];
	
	$xml = new XML("../script/user.xml");
	$xml->load_file();
	$_permission = new Permission($file,$permission);
	Application::setPermission($_permission,$user_name,$xml);
}
?>;